// 自定义组件基本使用

import { useState } from 'react';
import { Text, View } from 'react-native';
export default function App() {
  const [count, setCount] = useState(100);
  return (
    <View>
      <Text>我是父组件</Text>
      <Text>{count}</Text>
      <Child></Child>
    </View>
  );
}

const Child = () => {
  return (
    <View>
      <Text>我是子组件</Text>
    </View>
  );
};
